package com.nmf.dao.gen;

import com.nmf.dao.gen.bean.BizApplyMatter;
import com.nmf.dao.gen.bean.BizApplyMatterExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface BizApplyMatterMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @SelectProvider(type=BizApplyMatterSqlProvider.class, method="countByExample")
    long countByExample(BizApplyMatterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @DeleteProvider(type=BizApplyMatterSqlProvider.class, method="deleteByExample")
    int deleteByExample(BizApplyMatterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @Delete({
        "delete from biz_apply_matter",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @Insert({
        "insert into biz_apply_matter (id, matter_content, ",
        "create_date, update_date)",
        "values (#{id,jdbcType=VARCHAR}, #{matterContent,jdbcType=VARCHAR}, ",
        "#{createDate,jdbcType=TIMESTAMP}, #{updateDate,jdbcType=TIMESTAMP})"
    })
    int insert(BizApplyMatter record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @InsertProvider(type=BizApplyMatterSqlProvider.class, method="insertSelective")
    int insertSelective(BizApplyMatter record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @SelectProvider(type=BizApplyMatterSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="matter_content", property="matterContent", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    List<BizApplyMatter> selectByExample(BizApplyMatterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @Select({
        "select",
        "id, matter_content, create_date, update_date",
        "from biz_apply_matter",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="matter_content", property="matterContent", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_date", property="createDate", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_date", property="updateDate", jdbcType=JdbcType.TIMESTAMP)
    })
    BizApplyMatter selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @UpdateProvider(type=BizApplyMatterSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") BizApplyMatter record, @Param("example") BizApplyMatterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @UpdateProvider(type=BizApplyMatterSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") BizApplyMatter record, @Param("example") BizApplyMatterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @UpdateProvider(type=BizApplyMatterSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(BizApplyMatter record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_apply_matter
     */
    @Update({
        "update biz_apply_matter",
        "set matter_content = #{matterContent,jdbcType=VARCHAR},",
          "create_date = #{createDate,jdbcType=TIMESTAMP},",
          "update_date = #{updateDate,jdbcType=TIMESTAMP}",
        "where id = #{id,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(BizApplyMatter record);
}